import type { API_STORE } from './form/data';

export type ConnectionType = 'FTP' | 'SQL' | 'API' | 'Electronic' | 'FILE' | '';

export type Fields = {
  origin: string;
  target: string;
  id: string;
};

export type FTP = {
  ip: string;
  port: string;
  username: string;
  password: string;
  filePath: string;
};

export type SQL = {
  dataBase: string;
  ip: string;
  port: string;
  dataBaseName: string;
  sa: string;
  password: string;
};

export type Store = {
  sunlux: string;
  password: string;
  username: string;
};
export type API = {
  appKey: string;
  appSecret: string;
  storeId: string;
  shopAdminId: string;
  port: number;
  password: string;
  secret: string;
  user: string;
};

export type DataConnectionForm = {
  type: ConnectionType;
  ftp: FTP;
  sql: SQL;
  api: API;
  filed: Fields[];
  store: Store;
  cashierPlatform: string | API_STORE;
  electronicScaleBrand: string;
  filePath: string;
};
